package com.zzl.finance.order.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

/**
 * @author hyt
 */
@Data
@TableName(value = "o_email")
public class EmailEntity {

    @TableId(value = "id", type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;

    @ApidocModelProperty(description = "电子邮箱")
    private String email;

    @ApidocModelProperty(description = "是否默认，0 否 1 是")
    private Integer defaultFlag;

    @ApidocModelProperty(description = "企业id,权限使用")
    private String enterpriseId;

    @ApidocModelProperty(description = "部门id")
    private Integer orgId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "更新时间", validate = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @ApidocModelProperty(description = "创建人id")
    private Integer creatorId;
    @ApidocModelProperty(description = "更新人id")
    private Integer updaterId;
    @ApidocModelProperty(description = "备注")
    private String remark;
}